/*=====================================================================================================================
 * 
 * Repository path:     $HeadURL: http://sstu.googlecode.com/svn/tags/sstu-v40.24-dsPIC30F4013/src/include/eeprom.h $
 * Last committed:      $Revision: 32 $
 * Last changed by:     $Author: vladislav.gyurov@gmail.com $
 * Last changed date:   $Date: 2014-03-10 19:38:23 +0000 (Mon, 10 Mar 2014) $
 * ID:                  $Id: eeprom.h 32 2014-03-10 19:38:23Z vladislav.gyurov@gmail.com $
 *
 *===================================================================================================================*/
#ifndef __EEPROM_H
#define __EEPROM_H
    
//==========================================================================================================
// Included files to resolve specific definitions in this file                
//==========================================================================================================
#include <libpic30.h>
#include "basedef.h"
#include "PARLIST.h"


//==========================================================================================================
// Constant data                                                              
//==========================================================================================================

//==========================================================================================================
// Exported type                                                             
//==========================================================================================================
typedef struct tsParamAct
{
    U16  Iopar_members;
    U16  Iopar_Index;
    U16  EE_Chk_act;
    U8   u8NumberOfUpdatedBanks;
    BOOL bActiveBank;
}sParamAct;

//==========================================================================================================
// Exported data                                                              
//==========================================================================================================
extern U16 EE_CHKS;
extern U16 EE_Valid;
extern U16 EE_par_update;
extern sParamAct ParamAct;

//==========================================================================================================
// Constant exported data                                                     
//==========================================================================================================


//==========================================================================================================
// Exported Macros                                                            
//==========================================================================================================


//==========================================================================================================
// Exported functions                                                             
//==========================================================================================================
void ee_param_act(BOOL init,BOOL read_all_params);
HRESULT EE_CheckEEprom(void);


#endif // __EEPROM_H

